package com.wowangz.cms.user.pojo;

import java.util.ArrayList;
import java.util.List;

import com.wowangz.cms.syscore.pojo.BaseEntity;

public class MenuAdmin extends BaseEntity {

	private String menucode;
	private String menuname;
	private int menulevel;
	private String menupath;
	private MenuAdmin parentMenu;
	private List<MenuAdmin> childrenList = new ArrayList<MenuAdmin>();
	private boolean haschild = false;
	
	public boolean isHaschild() {
		if(childrenList.size() > 0)
			haschild = true;
		return haschild;
	}
	public void setHaschild(boolean haschild) {
		this.haschild = haschild;
	}
	public MenuAdmin getParentMenu() {
		return parentMenu;
	}
	public void setParentMenu(MenuAdmin parentMenu) {
		this.parentMenu = parentMenu;
	}
	public List<MenuAdmin> getChildrenList() {
		return childrenList;
	}
	public void setChildrenList(List<MenuAdmin> childrenList) {
		this.childrenList = childrenList;
	}
	public int getMenulevel() {
		return menulevel;
	}
	public void setMenulevel(int menulevel) {
		this.menulevel = menulevel;
	}
	public String getMenupath() {
		return menupath;
	}
	public void setMenupath(String menupath) {
		this.menupath = menupath;
	}
	public String getMenucode() {
		return menucode;
	}
	public void setMenucode(String menucode) {
		this.menucode = menucode;
	}
	public String getMenuname() {
		return menuname;
	}
	public void setMenuname(String menuname) {
		this.menuname = menuname;
	}
}
